<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>模板语法</title>
</head>
<body>
<div id="app">
    <p>using mustaches: {{rawHtml}}</p>
    <p>using v-html 指令： <span v-html="rawHtml"></span></p>
</div>
<script type="text/javascript" src="source/vue.js"></script>
<script type="text/javascript">
    var app = new Vue({
        el: "#app",
        data: {
            rawHtml: "<span style='color:red'>This should be red</span>"
        }
    })
</script>
</body>
</html>